﻿#region Includes
using System;
using System.Runtime.InteropServices;
#endregion

namespace GingerGL.Drawing.BSP
{
    //------------------------------------------------------------//
    /// <summary>
    /// texture as found in file
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
    public struct BSPTextureData
    {
        //--------------------------------------------------------//
        #region Variables
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
        public char[] Name;
        public Int32 Flags, Contents;
        static public readonly int SizeInBytes = (sizeof(int) * 2) + 64;
        #endregion
        //--------------------------------------------------------//
    }
    //------------------------------------------------------------//
}
